package com.xxx.springboot.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 自定义异常基类
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BaseException extends RuntimeException {
	
	private static final long serialVersionUID = 1L;
    
	protected int code;
    protected String msg;

    public BaseException() {
    	
    }

    public BaseException(String message) {
        super(message);
    }
}
